import { Injectable, NestMiddleware } from "@nestjs/common";
import {Reqeust, Response, NextFunction} from 'express'
import { AppService } from "./app.service";
@Injectable()
export class LoggerMiddleware implements NestMiddleware{
    constructor(private appService:AppService) {

    }
    use(req: Reqeust, res: Response, next: NextFunction) {
        console.log('this.appService', this.appService)
        console.log('LoggerMiddleware', req.originalUrl, this.appService.getConfig())
        next()
    }

}